<include file="public@header"/>

</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="">产品列表</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="get" action="{:url('admin/goods/lockkp')}" _lpchecked="1">
        类型:
        <select name="goods_id" class="form-control"  id="">
            <option  value="">全部</option>
            <volist name="$goodsAll" id="vo">
                <eq name="$g_id" value="$vo['g_id']">
                        <option selected value="{$vo.g_id}">{$vo.g_name}</option>
                    <else/>
                        <option  value="{$vo.g_id}">{$vo.g_name}</option>
                </eq>

            </volist>
        </select>
        <button class="btn btn-primary">搜索</button>
    </form>
    <table class="table table-bordered margin-top-20">
        <thead>
        <tr>
            <th>卡号</th>
            <th>卡密状态</th>
            <th>创建时间</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <volist name="$data" id="vo">
            <tr>
                <td>{$vo.card_number}</td>

                <td>{$vo.state_name}</td>
                <td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td>

                <td width="15%">
                    <a href="{:url('admin/goods/delKP',['code_id'=>$vo['card_number']])}" class="js-ajax-delete" data-msg="确定要删除" >删除卡密</a>
                </td>

            </tr>
        </volist>

        </tbody>
    </table>
    <ul class="pagination">
        {$data->render()}
    </ul>
</div>
</body>
</html>
<script src="__STATIC__/js/admin.js"></script>